//
//  OpenCLConvolutioner_mac_Test.c
//  LowPassFilter_Standalone
//
//  Created by kadlubek47 on 03.05.2013.
//  Copyright (c) 2013 kadlubek47. All rights reserved.
//

#include "OpenCLConvolutioner_mac.h"

void OpenCLConvolutioner_mac_Test() {
    OpenCLConvolutioner_mac conv_;
    
#define X_SIZE 16
    
    float_type x[X_SIZE], h[5] = {1,2,4,2,1}, y[12];
    unsgn_integer_type M = 2;
    
    for(int i=0; i < X_SIZE; ++i) {
        x[i]=10;
    }
    
    conv_.process(x, X_SIZE, h, M, y);
    
    for(int i=0; i < X_SIZE - 2*M; ++i)
        printf ("%f ", y[i]);
    
}